The stratum spinosum is the middle layer of the epidermis between the stratum basale and the stratum granulosum.